import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";

// use 税务端-合同管理-自由职业者合同
export function averageuserdealtList(params: any) {
  return http.request("get", baseUrlApi("business/average_user_merchants_deal/listTax"), { params });
}
// use 税务端-合同管理-公司合同
export function merchantsDealList(params: any) {
  return http.request("get", baseUrlApi("business/merchants_deal/listTax"), { params });
}
// use 税务端-合同管理-公司合同 new
export function merchantsInfoContractList(params: any) {
  return http.request("get", baseUrlApi("business/merchants_info_contract/list"), { params });
}
// 商户列表 
export function listMerchantName() {
  return http.request("get", baseUrlApi("business/user_data_permissions/listMerchantName"));
}
// 删除商户合同  317
export function merchantsRemove(id: any) {
  return http.request("delete", baseUrlApi(`business/merchants_info_contract/remove/${id}`));
}
// 商户合同状态修改 
export function merchantsState(params: any) {
  return http.request("put", baseUrlApi("business/merchants_info_contract/state"), { data:params });
}
// 商户合同备注 
export function remarkList(params: any) {
  return http.request("get", baseUrlApi("business/remark/list"), { params });
}
// 删除备注25
export function remarkRemove(id: any) {
  return http.request("delete", baseUrlApi(`business/remark/remove/${id}`));
}
// 添加备注 
export function addRemarkInfo(params: any) {
  return http.request("post", baseUrlApi("business/remark/addRemarkInfo"), { data:params });
}
// 创建人列表 ?entrySide=3
export function listBackstageUser(params: any) {
  return http.request("get", baseUrlApi("business/merchant_manager_user/listBackstageUser"), { params });
}
// use 商户合同分类 
export function contractTypeList() {
  return http.request("get", baseUrlApi("constantList/contractTypeList"));
}
// 税源地列表
export function taxSourcesList(params: any) {
  return http.request("get", baseUrlApi("business/user_data_permissions/listTaxSourcesRole"), { params });
}
// use 税务端-合同管理-银行支付合同
export function bankAccountList(params: any) {
  return http.request("get", baseUrlApi("business/bank_account/listTax"), { params });
}
// use 税务端-合同管理-规范确认记录
export function dealNormConfirmList(params: any) {
  return http.request("get", baseUrlApi("business/merchants_deal_norm_confirm/listTaxSide"), { params });
}
